package com.repair.worker.exception;

import com.repair.base.exception.BizException;
import com.repair.base.exception.ErrorCode;
import lombok.Data;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zq
 * @version 1.0
 * @create 2024-11-07 19:25
 * @since jdk1.8
 */
@Data

public class WorkerServiceException extends BizException {
    private ErrorCode errorCode;
    public WorkerServiceException(ErrorCode errorCode) {
        super(errorCode);
    }

    public WorkerServiceException(String message, ErrorCode errorCode) {
        super(message, errorCode);
    }

    public WorkerServiceException(String message, Throwable cause, ErrorCode errorCode) {
        super(message, cause, errorCode);
    }

    public WorkerServiceException(Throwable cause, ErrorCode errorCode) {
        super(cause, errorCode);
    }

    public WorkerServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, ErrorCode errorCode) {
        super(message, cause, enableSuppression, writableStackTrace, errorCode);
    }
}
